All Questions
4 questions
2votes
3answers
2kviews
Where should view-specific data/logic be defined in a PHP MVC application?
After many hours of research and thinking I have found an understanding, then coming to question it again, I am struggling to find something concrete which I can grasp and apply to my code in a ...
7votes
2answers
1kviews
Am I using Zend Form library correctly? (I am effectively duplicating work in Controller and in View)
Brief Summary This question is asking for guidance on how to deal with Zend Form library that allows me to specify how to construct each form element (Controller side) and how to render each element (...
0votes
1answer
2kviews
Accessing database from static and non-static methods
I'm currently building a REST API in PHP & MySQL, and now I'm stuck at how I should structure the classes and the database connection. Let's say I have a table in my database for movies. How ...
7votes
5answers
9kviews
Programming PHP without MVC, classes or framework: rewrite or continue on new features?
I have been programming for several years now, and back then (learning PHP) I've didn't learn to program using classes, MVC-logic or using any frameworks. I found my self solving my problems very well ...